<template>
  <div class="home">
    我是home
  </div>
</template>

<script>
export default {
  data() {
    return {}
  },
  created() {
    console.log('home created');
  },
  mounted() { console.log('home mounted');},
  beforeCreate() { console.log('home beforeCreate');},
  beforeDestroy() { console.log('home beforeDestroy');},
  destroyed() { console.log('home destroyed');},
  beforeRouteEnter(to, from, next) {
    console.log('home beforeRouteEnter');
    next(vm => {
        console.log('home next回调执行');
    })
  },
  beforeRouteUpdate(to, from, next) {
    console.log('home beforeRouteUpdate');
    next()
  },
  beforeRouteLeave(to, from, next) {
    console.log('home beforeRouteLeave');
    next()
  },
}
</script>

<style scoped lang="less">
</style>